home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 1997
/
MacHack 1997.toast
/
Hacks
/
Hacks ’96
/
HyperHack - Allan Bonadio
/
Read Me
< prev
Wrap
Text File
|
1996-06-22
|
2KB
|
74 lines
HyperHack - a Hypertext system in a quarter K
HyperHack is a simple hypertext system whose compiled code
(minus MacOS glue, etc) is 224 bytes (or so).
Copyright (c) 1996 Allan Bonadio. All rights reserved.
Submitted by:
Allan Bonadio
MacHack attendee #2222
bonadio@well.com
6/21/96
------------------------------ Parts Needed
You need these two files:
HyperHack.exe
ht
The first file is the executable application.
The second file is the hypertext data and graphics itself.
The project is supplied so you can see how small the
compiled code is.
The full executable is about 2k, after the glue and overhead is
tossed in. For comparison purposes, Netscape
Navigator version 2.01 is 2 megabytes.
------------------------------ Tutorial
Fire up HyperHack.exe and you are presented with the "home" page
of the ht file.
Now, click on any button or picture to go to another page. Each page
has text, graphics, and buttons that take you to other pages.
To quit, use cmd/opt/Escape.
------------------------------ Theory of Operation
The ht file consists of mostly DITL resources, plus the
associated PICT and other resources to make the DITLs work.
It also has one DLOG resource.
The code, to display a page, takes the DLOG, sticks in the resid
of the DITL, and displays it as a modal dialog.
When the user presses a button, the program gets its button title
and grabs the DITL of the same name. When the user clicks on a
PICT, it looks up the resource name of that resource,
and then looks up the DITL of that name. Such DITL is the next
page.
There are no resources in the executable other than CODE and
others needed for execution. It probably runs on all mac
systems back to 1984 or so, but the font styles on the stattext
items probably don't work on old systems. But of course I only
tested it on system 7.1.1; QA will get right on it in the morning.
Note that in the "How to use a Mac" section, the diagonal arrow
lines are all drawn from two pictures that are stretched , each
a draw-style diagonal line.
Also many of the dialogs have an empty stattext item in the lower
right corner so resourcer opens the window far enough.